import baseRequest from './base';
/*** 
 *   获取价格目录结构 
 * 
 */
export function getpricecat(obj) {
  let requestConfig = {
    url: '/getpricecat',
  };
  return baseRequest(obj, requestConfig);
}
 
/*** 
 *    获取品目与价格目录关联接口 
 * 
 */
export function getpriceknamecat(obj) {
  let requestConfig = {
    url: '/getpriceknamecat',
  };
  return baseRequest(obj, requestConfig);
}
/***
 *  获取价格（行情）列表数据 
 * 
 */
export function getchannelpricelist(obj) {
  console.log(1234,obj)
  let requestConfig = {
    url: '/getchannelpricelist',
  };
  return baseRequest(obj, requestConfig);
}
/***
 *  获取我的自选价格
 */
export function getmychannelpricelist(obj) {
  console.log(1234,obj)
  let requestConfig = {
    url: '/getmychannelpricelist',
  };
  return baseRequest(obj, requestConfig);
}

 /***
 * 更新我的价格自选接口 
 * 
 */
export function updateyprice(obj) {
  let requestConfig = {
    url: '/updatechannelmypricelist',
  };
  return baseRequest(obj, requestConfig);
}
 /***
 * 获取单条价格（行情）数据 
 * 
 */
export function getchannelpricedetail(obj) {
  let requestConfig = {
    url: '/getchannelpricedetail',
  };
  return baseRequest(obj, requestConfig);
}
 /***
 * 获取价格走势图数据接口  
 * 
 */
export function getpricetrendchartdata(obj) {
  let requestConfig = {
    url: '/getpricetrendchartdata',
  };
  return baseRequest(obj, requestConfig);
}